#include "HD447808Bits.h"
#include "HD44780AnalyzerSettings.h"


HD447808Bits::HD447808Bits(void)
{
}

HD447808Bits::~HD447808Bits(void)
{
}

void HD447808Bits::SetDataLines( U8 Data )
{
    (*mData)[ mSettings->GetData3() ]->TransitionIfNeeded( Data & 0X08 ? BIT_HIGH : BIT_LOW );
    (*mData)[ mSettings->GetData4() ]->TransitionIfNeeded( Data & 0x10 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData5() ]->TransitionIfNeeded( Data & 0X20 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData6() ]->TransitionIfNeeded( Data & 0X40 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData7() ]->TransitionIfNeeded( Data & 0X80 ? BIT_HIGH : BIT_LOW  );
}

